/*
 * @Author: Haochen
 * @Date: 2021-12-24 17:25:46
 * @LastEditTime: 2021-12-25 10:40:03
 * @FilePath: \recipes-admin-system\src\api\modules\swiper.js
 */
import axios from 'axios';

export default {
  getAllSwiper() {
    return axios({
      url: '/admin/getAllSwiper',
      method: 'GET',
    });
  },

  addSwiper(data) {
    return axios({
      url: '/admin/addSwiper',
      method: 'POST',
      data,
    });
  },

  deleteSwiper(params) {
    return axios({
      url: '/admin/deleteSwiper',
      method: 'GET',
      params,
    });
  },

  updateSwiper(data) {
    return axios({
      url: '/admin/updateSwiper',
      method: 'POST',
      data,
    });
  },
};
